﻿using Microsoft.Scripting.Hosting;
using Ruby.Hosting;

namespace Avaxo.Scripting
{
    internal class IronRubyLanguageEngine : DynamicLanguageEngine
    {
        private static readonly RubyLanguageProvider provider =
            (RubyLanguageProvider) ScriptEnvironment.GetEnvironment().GetLanguageProvider( typeof ( RubyLanguageProvider ) );
        private static readonly ScriptEngine RubyEngine = provider.GetEngine();

        public override ScriptEngine ScriptEngine
        {
            get { return RubyEngine; }
        }
    }
}